package com.tz.ebusiness.service;

import com.tz.ebusiness.entity.User;
import org.springframework.stereotype.Service;

public interface IUserService {
    /**
     * 注册
     */
    void registerUser(User user);

    /**
     * 登陆
     */
    User loign(String username, String password);

    /**
     * 根据用户名查找用户
     */
    User findUser(String username);

    /**
     * 登出
     */
    void logout();
}
